<html>

<head>
<title>HOSPITAL</title>
<link type="text/css" href="jquery-ui-1.8.13.custom/css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="Stylesheet" />	
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.13.custom/js/jquery-ui-1.8.13.custom.min.js"></script>
</head>
<body>
<script language="javascript">
function fncSubmit()
{
if(document.form1.pre_id.value == "")
	{
	alert('Please input Prescription');
		document.form1.pre_id.focus();
		return false;
	}
if(document.form1.std_id.value == "")
	{
		alert('Please input General Practice');
		document.form1.std_id.focus();
		return false;
	}	
	document.form1.submit();
}

</script>
<br/>
<br/>
<center><h1>ADD RECORDS</h1></center>
<br/>
<center><table border=3 bordercolor="#ff99cc">
<tr><td>

<form name="form1" action="add-record.php" method="post" onSubmit="JavaScript:return fncSubmit();">
	PRESCRIPTION_ID: <input type="text" name="pre_id" /><br/>
	GENERALP_ID: <input type="text" name="std_id" /><br/>
        
	<center><input type="submit" /></center>
</form>

</td></tr>
</table>

</body>
</html>